package com.juyu.miliao.api.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author jh
 * 2018/10/19
 */
@Data
@ApiModel
public class FakeUserDTO implements Comparable<FakeUserDTO> {

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "头像")
    private String pic;

    @ApiModelProperty(value = "性别 true-男  false-女")
    private Boolean sex;

    @ApiModelProperty(value = "金币")
    private Integer goldCorn;

    @ApiModelProperty(value = "钻石")
    private Integer diamond;

    @ApiModelProperty(hidden = true)
    private int compareNum;

    @Override
    public int compareTo(FakeUserDTO o) {
        if (this.compareNum > o.getCompareNum()) {
            return -1;
        } else {
            return 1;
        }
    }
}
